package org.example.Server.model.semester;

import lombok.Data;

@Data
public class SemData {
    private Integer id;
    private String studentName;
    private String studentNumber;
    private String divisionName;
    private double examTotalScore;
    private double homeworkTotalScore;
    private double finalScore;
    private String img_url;

    public void setExamTotalScore(double examTotalScore) {
        this.examTotalScore = Math.round(examTotalScore * 100) / 100.0;

    }

    public void setHomeworkTotalScore(double homeworkTotalScore) {
        this.homeworkTotalScore = Math.round(homeworkTotalScore * 100) / 100.0;
    }

    public void setFinalScore(double finalScore) {
        this.finalScore = Math.round(finalScore * 100) / 100.0;
    }
}
